<style>
    body{
        font-size: 14px;
        font-family: arial, sans, tahoma;
    }
    .mathdiv{
        overflow: scroll;
        height: 100%;
    }
</style>


<div class="mathdiv">
<div id="main">
    <dd>
    <? foreach ($this->list as $key=>$value): ?>
        <dt>
            <a href="#<?=$key?>"><?= $value?></a>
        </dt>
    <? endforeach; ?>
    </dd>
</div>

<div>
    <a href="./vkcomm">Каменты и пожелания</a>
</div>

<div>
    <? for($i=0; $i<10; $i++):?>
        <div>
            <img src="images/vk-2045241/<?=$i?>.jpg" id="<?=$i?>">
            <br>
            <a href="#main">вверх</a>
        </div>
        
    <? endfor;?>
</div>

<form method="post" action="vk"> 
    <input type="text" name="name"/>
    <input type="text" name="alltext"/>
    <input type="submit" name="sub"/>
</form>

<div>
    <a href="./vkcomm">Каменты и пожелания</a>
</div>
</div>